package wafa.criterion;

import java.util.List;
import java.util.Set;

import wafa.modelDocument.Content;
import wafa.modelDocument.Document;
import wafa.modelDocument.Index;

public interface Repository {

	Document findDocumentByid(String idDocument);

	boolean updateDocument(Document updatedDocument);

	boolean addDocument(Document newDocument);

	boolean deleteDocument(Document deletedDocument);

	Set<Index<?>> findIndexByidDocument(String idDocument);
	
	boolean addIndexDocument(String idDocument, Index<?> index);

	Content findContentByidDocument(String document);
	
	List<Content> findAttachamentsByidDocument(String document);
	
	boolean addAttachment(Content content,String idDocument); 
	
}
